import { FC } from "react"
import CaseNo from './components/caseNo'
import Applicant from './components/applicant'
import Respondent from './components/respondent'
import TimeTypeSelector from './components/timeTypeSelector'
import BeginTime from './components/beginTime'
import EndTime from './components/endTime'
import PartyAreaTag from './components/partyAreaTag'
import CauseAction from './components/causeAction'
import CauseUseType from './components/causeUseType'
import ClosureType from './components/closureType'
import MinDisputeAmount from './components/minDisputeAmount'
import MaxDisputeAmount from './components/maxDisputeAmount'
import Procedure from './components/procedure'
import Processerid from './components/processerid'
import Arbitratorid from './components/arbitratorid'
// import AcceptStructure from './components/AcceptStructure'
import Serieno from './components/serieno'
import Casetype from './components/casetype'
// import Casesubtype from './components/Casesubtype'
// import CauseactionType from './components/CauseActionType'
import PartyAddress from './components/partyAddress'
import SubmitOnLine from './components/submitOnLine'
import Year from './components/year'


export interface ComponentSchema {
  name: string
  label: string
  defaultVisible?: boolean
  component: FC<any>
}

const list: ComponentSchema[] = [
  { name: 'year', label: '年份', defaultVisible: true, component: Year },
  { name: 'caseno', label: '案号', defaultVisible: true, component: CaseNo },
  { name: 'applicant', label: '申请人', defaultVisible: true, component: Applicant },
  { name: 'respondent', label: '被申请人', defaultVisible: true, component: Respondent },
  { name: 'type', label: '时间维度', component: TimeTypeSelector },
  { name: 'beginTime', label: '起始日期', component: BeginTime },
  { name: 'endTime', label: '截止日期', component: EndTime },
  // { name: 'party_area_tag', label: '案件区域分类', component: PartyAreaTag },
  { name: 'cause_action', label: '案由', component: CauseAction },
  // { name: 'cause_use_type', label: '案由使用方式', component: CauseUseType },
  { name: 'closure_type', label: '结案类型', component: ClosureType },
  { name: 'minDisputeAmount', label: '最小标的', component: MinDisputeAmount },
  { name: 'maxDisputeAmount', label: '最大标的', component: MaxDisputeAmount },
  { name: 'procedure', label: '仲裁程序', component: Procedure },
  { name: 'processerid', label: '办案秘书', component: Processerid },
  { name: 'arbitratorid', label: '仲裁员', component: Arbitratorid },
  // { name: 'accept_structure', label: '案件来源', component: AcceptStructure },
  // { name: 'serieno', label: '系列号', component: Serieno },
  // { name: 'casetype', label: '案件类型', component: Casetype },
  // { name: 'casesubtype', label: '金融子类', component: Casesubtype },
  // { name: 'causeactionType', label: '案由大类', component: CauseactionType },
  // { name: 'party_address', label: '当事人地址', component: PartyAddress },
  // { name: 'submittalid', label: '线上立案', component: SubmitOnLine }
]

export default list
